package com.leyou.item.mapper;


import com.leyou.item.entity.SpuDetail;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;



public interface SpuDetailMapper extends Mapper<SpuDetail> {
    @Select("select * from tb_spu_detail where spu_id =#{id}")
    SpuDetail queryGoodsBySpuId(@Param("id") Long id);

    @Delete("delete from tb_spu_detail where spu_id=#{id}")
    void deleteSpuDetailBySpuId(@Param("id") Long spuId);
}
